from airtest.core.api import auto_setup
from airtest.report.report import simple_report
from poco.drivers.android.uiautomation import AndroidUiautomationPoco


class air_init:
    def init(self, file):
        auto_setup(
            file, devices=["android://127.0.0.1:5037/3066321372006G7"], logdir=True
            # file, devices=["android://127.0.0.1:5037/1f0f1b0"], logdir=True
        )
        poco = AndroidUiautomationPoco(
            use_airtest_input=True, screenshot_each_action=False
        )
        return poco
